package com.trendit.print.sdk;


import lombok.Data;

/**
 * @author zhouhaojie
 */
@Data
public class DaquResponse<T> {

    public DaquResponse() {
    }

    private int code;

    private String message;

    private T data;

    public boolean success() {
        return code == 0;
    }

    public boolean fail() {
        return !success();
    }

}
